import { createRouter, createWebHistory } from 'vue-router';
import ImagesManage from '@/views/ImagesManage.vue';
import ContainerManage from '@/views/ContainerManage.vue';
import SettingsPage from '@/views/SettingsPage.vue';
import logsView from '@/views/logsView.vue';

const routes = [
  { path: '/', redirect: '/ImagesManage' },
  { path: '/ImagesManage', component: ImagesManage },
  { path: '/ContainerManage', component: ContainerManage },
  { path: '/settings', component: SettingsPage },
  { path: '/logs/:id', component: logsView }
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
